/**
 * @Author:Geln Yang
 * @Created:2008-7-29
 * $ Revision: 1.0 $
 * $ Author: Geln Yang $
 * $ Date: 2008-7-29 $
 */
package org.geln.properties;

import java.io.IOException;
import java.util.Properties;

/**
 * @Author:Geln Yang
 * @Created:2008-7-29
 */
public class PropertiesUtil {
	public static Properties getProperties(String filename) {
		Properties pro = new Properties();
		try {
			pro.load(PropertiesUtil.class.getClassLoader().getResourceAsStream(filename));
		} catch (IOException e) {
			throw new RuntimeException(e);
		}
		return pro;
	}
}
